# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
# Contributor: TDY <tdy@archlinux.info>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Laszlo Papp <djszapi @ gmail at com>

pkgname=vim-nerdcommenter
pkgver=2.7.0
pkgrel=1
pkgdesc='Plugin that allows for easy commenting of code for many filetypes'
url='https://github.com/preservim/nerdcommenter'
arch=('any')
license=('CCPL')
depends=('vim-plugin-runtime')
groups=('vim-plugins')
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/refs/tags/${pkgver}.tar.gz")
sha512sums=('58b8844382d9ec34b63d886019ea7b1a8735bd3abea1be53170e53f86c1010a32c1e7eaac7d928572179926c6199b762a5adb2c9f004ba37c0a25152d57978f6')

package() {
  cd ${pkgname#vim-}-${pkgver}
  _installpath="${pkgdir}/usr/share/vim/vimfiles"
  install -Dm 644 doc/* -t "${_installpath}/doc"
  install -Dm 644 autoload/* -t "${_installpath}/autoload"
  install -Dm 644 plugin/* -t "${_installpath}/plugin"
  install -Dm 644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

# vim: ts=2 sw=2 et:
